@import "./_themes.scss";

@mixin themeify {
  @each $theme-name, $theme-map in $themes {
    $theme-map: $theme-map !global;
    [data-theme="#{$theme-name}"] & {
      @content;
    }
  }
}
@function themed($key) {
  @return map-get($theme-map, $key);
}
//获取背景颜色
@mixin background_color($color) {
  @include themeify {
    background-color: themed($color)!important;
  }
}
//获取背景图片
@mixin background($color) {
  @include themeify {
    background: themed($color)!important;
  }
}
//获取图片
@mixin content($color) {
  @include themeify {
    content: themed($color);
  }
}
//获取背景图片
@mixin border_bottom($color) {
  @include themeify {
    border-bottom: themed($color)!important;
  }
}
//获取背景图片
@mixin border($color) {
  @include themeify {
    border: themed($color)!important;
  }
}

@mixin border_input($color){
  @include themeify{
    border: 2px solid themed($color) ;
  }
}

@mixin border_list($color){
  @include themeify{
    border-bottom: 1px solid themed($color) ;
  }
}


@mixin backgroundImage($color){
  @include themeify{
    background:themed($color) no-repeat 100% 20%;
  }
}

//获取字体颜色
@mixin font_color($color) {
  @include themeify {
    color: themed($color);
  }
}
//获取边框颜色
@mixin border_color($color) {
  @include themeify {
    border-color: themed($color)!important;
  }
}